/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package org.lejos.example;
import lejos.nxt.comm.RConsole;
/**
 *
 * @author Steed
 */
public class DebugConsole {

    private static boolean LOGGING_ON;

    static
    {
        LOGGING_ON=true;
    }

    public static void main(String[] args)
    {
        final int x;
        final int y;
        final int sum;

        RConsole.open();
        x=17;
        y=3;
        sum=x+y;
        log("Sum: "+sum);
        RConsole.close();



    }

    private static void log(final String value)
    {
        if(LOGGING_ON)
        {
         RConsole.println(value);

        }
    }
}
